package com.notecalendar.bo.impl;

import java.math.BigInteger;
import java.util.List;

import com.notecalendar.bo.Evernote_FileBo;
import com.notecalendar.dao.Evernote_FileDao;
import com.notecalendar.model.Evernote_File;

/**
 * Class for implementing the definite methods in Evernote_FileBo
 * @author angelcereijo
 *
 */
public class Evernote_FileBoImpl implements Evernote_FileBo {
	
	//Dao object. Inject via spring
	private Evernote_FileDao evernote_fileDao;
	
	public void setEvernote_fileDao(Evernote_FileDao evernote_fileDao) {
		this.evernote_fileDao = evernote_fileDao;
	}
	
	/**
	 * @see Evernote_FileBo#insertEvernote_File(Evernote_File)
	 */
	public Evernote_File insertEvernote_File(Evernote_File evernote_file) {
		return evernote_fileDao.insertEvernote_File(evernote_file);
	}
	
	/**
	 * @see Evernote_FileBo#findEvernote_File(int)
	 */
	public Evernote_File findEvernote_File(BigInteger id) {
		return evernote_fileDao.findEvernote_File(id);
	}

	/**
	 * @see Evernote_FileBo#findAllEernote_File()
	 */
	public List<Evernote_File> findAllEernote_File() {
		return evernote_fileDao.findAllEvernote_File();
	}
	
	/**
	 * @see Evernote_FileBo#deleteEvernote_File(Evernote_File)
	 */
	public void deleteEvernote_File(Evernote_File evernote_file) {
		evernote_fileDao.deleteEvernote_File(evernote_file);
	}

}
